home *** CD-ROM | disk | FTP | other *** search
- #include <exec/exec.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include "work:romconf/doorheader.h"
- #include <proto/exec.h>
- #include <string.h>
- #include "source:aztec/glue.h"
-
- void creds(void);
- char cmd[200];
- char mypath[200];
- char tempname[400];
- char filename[200];
- char showname[200];
- int mynode;
- int Edited=0;
- void end(void);
- void LastCommand(void);
- #define sm sendmessage
- #define gu getuserstring
- #define pm prompt
- main(int argc,char *argv[])
- {
- char command[100];
- char nodenum[100];
- int code;
- register int i;
- if(argc!=2)
- {
- printf(".------------------------------------------------------.\n",1);
- printf("| Ami-Express AcpCmd Version 1.0 Written by ByteMaster |\n");
- printf("| /X Development Team - The Silent Achievers |\n");
- printf("`------------------------------------------------------'\n");
- printf("\n");
- printf(" This is a (XIM) for AmiExpress 3.00+\n");
- printf("\n");
- exit(0);
- }
- Register(argv[1][0]-'0');
- creds();
-
- mynode=argv[1][0]-'0';
- sm("",1);
- sm("ACP COMMAND OPTIONS:",1);
- sm("",1);
- sm("0 - Start Node 8- Account Editing",1);
- sm("1 - Sysop Login 9- Init Modem ",1);
- sm("2 - Instant Login 10- Node OffHook ",1);
- sm("3 - AEShell 11- Quiet Node ",1);
- sm("4 - Toggle Chat 12- Node Config ",1);
- sm("5 - Exit Node 13- Node Chat ",1);
- sm("6 - Local Login 14- Sav Window ",1);
- sm("7 Reserve Node 15- Set Nrams ",1);
- sm("",1);
- sm(" 16+- CustomCommand ",1);
-
- pm(">: ",command,5);
- pm("Node >: ",nodenum,3);
- if(atoi(command)>=0 && atoi(command)<=15)
- AcpCommand("",atoi(command)+ACP_CONTROLCOMMAND,atoi(nodenum));
- if(atoi(command)>15)
- {
- code=atoi(command)-15;
- if(code<=15)
- {
- AcpCommand("",code+ACP_CUSTOMCOMMAND,atoi(nodenum));
- }
- }
- ShutDown();
- end();
- }
- void end(void)
- {
- exit(0);
- }
- void LastCommand(void)
- {
-
- sm("",1); sm("",1);
- }
-
- void creds(void)
- {
- sm(" .---------------------------------------------------------------------------.",1);
- sm(" | Ami-Express AcpCmd Version 1.0 Written by ByteMaster |",1);
- sm(" | /X Development Team - The Silent Achievers |",1);
- sm(" `---------------------------------------------------------------------------'",1);
- sm("",1);
- }